class CreateAddresses < ActiveRecord::Migration[5.0]
  def change
    create_table :addresses do |t|
      t.integer :user_id
      t.string :province
      t.string :city
      t.string :district
      t.string :street

      t.timestamps
    end
      add_index :addresses, :user_id
  end
end
